#!/bin/bash
clear
echo -n "121165151145156040160151163141040143157156040163165141166151144141144040166141040154145152157163056" > testfile3.oct
echo "Archivo octal:"
echo "121165151145156040160151163141040143157156040163165141166151144141144040166141040154145152157163056"
echo ""

./tp0 -b -i testfile3.oct -o testfile3.bin
echo "Se va a codificar a formato binario:"
cat testfile3.bin
echo ""

./tp0 -i testfile3.bin -o testfile3.oct.new
diff -q testfile3.oct.new testfile3.oct
echo ""
echo "Se va a decodificar a su formato original:"
cat testfile3.oct.new
echo ""
echo ""

read -p "Press enter to continue..."

# Los archivos son verificados de los siguientes sitios:
# http://nickciske.com/tools/octal.php
# http://nickciske.com/tools/binary.php
